package com.amoyt.project.domain.dto.insert;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Date: 2025/8/21
 * @Time: 15:26
 * @Author: TQ_QT
 * @Description: 贫困户信息添加DTO
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Schema(description = "贫困户信息添加DTO==超大")
public class HouseholdAddDto {

    @Schema(description = "户主姓名")
    private String headOfHousehold;

    @Schema(description = "户主身份证号 16位")
    private String headIdCard;

    @Schema(description = "家庭人口数")
    private Integer familySize;

    @Schema(description = "详细住址，关联地址id,此处为字符串，记得处理")
    private String addressStr;

    @Schema(description = "联系电话（户主）")
    private String phone;

    @Schema(description = "登记状态：0-未登记，1-已登记")
    private String registrationStatus;

    @Schema(description = "家庭经济状况分类（前端枚举）")
    private String economicStatus;

    @Schema(description = "家庭贫困程度等级（前端枚举）")
    private String povertyLevel;

    @Schema(description = "纳入贫困系统的时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date inclusionDate;

    @Schema(description = "贫困户类型 农业户口，非农业户口，城镇居民户口")
    private String householdType;

    @Schema(description = "贫困状态（‘已脱贫’，‘未脱贫’，‘检测对象’）")
    private String povertyStatus;

    //贫困个人列表
    @Schema(description = "贫困个人列表")
    private List<PersonAddDto> personList;

    //需求列表
    @Schema(description = "需求列表")
    private List<DemandInfoAddDto> demandList;
}
